package com.leyou.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.user.entity.Area;
import com.leyou.user.entity.City;
import com.leyou.user.mapper.CityMapper;
import com.leyou.user.service.CityService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements CityService {
    @Override
    public List<City> findByCid(Long pid) {
        List<City> cities = this.query().eq("provinceid", pid).list();
        return cities;
    }


}
